package com.amigo.online.provider.user.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.amigo.online.provider.user.model.entity.UserHobby;

@Mapper
@Component
public interface UserHobbyMapper {

    List<UserHobby> findHobbyByUserId(@Param("userId") Long userId);

    Integer updateDelete(@Param("deleteList") List<Long> deleteList, @Param("userId") Long userId, @Param("nowTime") Long nowTime);

    Integer addHobby(@Param("newlist") List<Long> newlist, @Param("userId") Long userId, @Param("nowTime") Long nowTime);
}